import request from "../utils/request"

export const fetchList = (params = {}) => {
	return request({
		url: '/api/list',
		method: 'get',
		params
	})
}


export const login = (data: { username: string, password: string }) => {
	return request({
		url: '/api/login',
		method: 'post',
		data
	})
}